<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="com.asaga.tools.*, java.util.*, java.io.*, java.net.*, java.util.*"%>
<%--
     Author:  Jeremy Sanderlin 
     Date Created: 2007-03-18
     Last Modified: 2006-03-18
     Last Modified By: Jeremy Sanderlin
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<% 
    AutismGroup autismGroup = null;
    AutismGroupList autismGroupList = (AutismGroupList)session.getAttribute("autismGroupList");
    TreeSet autismGroupTreeSet = autismGroupList.GetAutismGroupList();
    Iterator autismGroupIterator = autismGroupTreeSet.iterator();
    SystemClient_DBImpl userProfile = (SystemClient_DBImpl)session.getAttribute("userProfile");
%>
<html>
    <head>
        <%@ include file="header.jsp" %>
    </head>
    <body>
        <div id="container">
            <%@ include file="topNav.jsp" %>
            <%@ include file="leftside.jsp" %>
            <%@ include file="rightside.jsp" %>
            <div id="content">
                <table border="0">
                    <tr>
                        <td><a href="AutismSiteMasterController?action=group&groupAction=list">List All Groups </a></td>
                        <td><a href="create_group.jsp">Create a Group</a></td>
                    </tr>
                </table>
                <br />
                <hr />
                <br />        
                <h1>List Groups</h1>
                <table border="0"> 
                    <% while(autismGroupIterator.hasNext()){ %>
                    <% autismGroup = (AutismGroup)autismGroupIterator.next(); %>
                    <tr>
                        <td><%=autismGroup.GetGroupName()%> </td>
                        <td><a href=AutismSiteMasterController?action=group&groupAction=join&group2Join=<%=autismGroup.GetGroupId()%>>
                            Join Group
                        </a>
                    </tr>
                    <tr><td colspan="2"><%=autismGroup.GetGroupDescription()%></td></tr>
                    <tr><td colspan="2"><hr/></td></tr>
                    <% } %>
                </table>
            </div>
            <%@ include file="footer.jsp" %>
        </div>
    </body>
</html>
